package com.qst.rongxiaotong.service;

import com.github.pagehelper.PageInfo;
import com.qst.rongxiaotong.pojo.Knowledge;

import java.util.List;

public interface KnowledgeService {

    PageInfo<Knowledge> findPage(Integer pageNum);

    Knowledge selectById(Integer id);

    PageInfo<Knowledge> findPageByKeys(String keys,Integer pageNum);

    //添加农业知识
    void add(Knowledge knowledge);

    //修改农业知识
    void update(Knowledge knowledge,Integer id);

    //删除农业知识
    void delete(Integer id);

    //根据登录用户查询个人农业知识
    List<Knowledge> selectByUsername(String name);




















}
